package com.douyu.ocean.invoke.model;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * @author leiruiqi on 2018/7/30
 */
public class InvokeStatistics {

    private LinkedList<Long> costTimeList = new LinkedList<Long>();

    private Long failCount = 0L;

    private Long succeseCount = 0L;

    public LinkedList<Long> getCostTimeList() {
        return costTimeList;
    }

    public Long getFailCount() {
        return failCount;
    }

    public Long getSucceseCount(){
        return succeseCount;
    }

    public void addCostTime(Long cost){
        costTimeList.add(cost);
    }

    public void addFailCount(){
        failCount++;
    }

    public void addSucceseCount(){
        succeseCount++;
    }


}
